    import request from '@/utils/request'
export function readData(params) {
  return request({
    url: '/energy/readData',
    method: 'get',
    params
  })
}
/**全部电表 */
export function selectAllAmmeter(params) {
  return request({
    url: '/ammeter/selectAllAmmeter',
    method: 'get',
    params
  })
}
/**日电量查询 */
export function dayEnery(params) {
  return request({
    url: '/energy/dayEnery',
    method: 'get',
    params
  })
}

/**日分时电量查询 */
export function hourEnery(params) {
  return request({
    url: '/energy/hourEnery',
    method: 'get',
    params
  })
}
/**月电量查询 */
export function monthEnery(params) {
  return request({
    url: '/energy/monthEnery',
    method: 'get',
    params
  })
}
/**月分日电量查询 */
export function monthDayEnery(params) {
  return request({
    url: '/energy/monthDayEnery',
    method: 'get',
    params
  })
}
/**年份电量查询 */
export function yearEnery(params) {
  return request({
    url: '/energy/yearEnery',
    method: 'get',
    params
  })
}
/**年分月电量查询 */
export function yearMonthEnery(params) {
  return request({
    url: '/energy/yearMonthEnery',
    method: 'get',
    params
  })
}